<?php


namespace app\api\controller\v1;


use app\common\controller\UserBaseController;
use app\common\library\Platform;

/*
 * User
 * */
class UserController extends UserBaseController
{
    //微信登录
    function login_by_wxmpAction()
    {
        $this->paramlist =[
            'appid' => 'string',
            'code' => 'string',
            'user_info_data' => 'string',
            'user_phone_data' => 'string',
            'user_info_iv' => 'string',
            'user_phone_iv' => 'string',
            'bike_id' => 'optstring',
        ];

        $this->check_params();

        $platform = Platform::get_platform_info($this->argv['appid']);
        if (empty($platform)){
            $this->throw_myexception(ERROR_QUERY_INFO,'wrong appid');
        }



    }
}